package com.zhongfl.crm.service.boss;

import com.zhongfl.crm.enums.boss.OrderMemorandumAtNoticeSendStatusEnum;
import com.zhongfl.crm.enums.boss.OrderMemorandumSyncStatusEnum;
import com.zhongfl.crm.model.boss.OrderMemorandum;

/**
 * LXRevisitLogService 服务
 *
 * @author tiantian
 * @date 2018/6/27 16:11
 */
public interface LXRevisitLogService {

    /**
     * 保存系统操作日志
     *
     * @param systemLog 订单系统日志
     * @return 自增ID
     */
    Long saveSystemLog(OrderMemorandum systemLog);

    Long saveCustomerOrderSystemLog(OrderMemorandum systemLog);

    /**
     * boss系统后台 新增
     */
    Long save(OrderMemorandum record);

    /**
     * 更新
     */
    void updateById(OrderMemorandum record);

    void updateCustomerOrderNoByOrderNo(String orderNo,String customerOrderNo);

    OrderMemorandum findById(Long id);

    ///**
    // * 分页查询需要同步的数据
    // */
    //PageInfo<OrderMemorandum> findPaging(OrderMemorandum orderMemorandum);

    /**
     * 更新同步状态
     *
     * @param id
     * @param status
     */
    void updateSyncStatus(Long id, OrderMemorandumSyncStatusEnum status);

    /**
     * 更新消息发送状态
     *
     * @param id
     * @param status
     */
    void updateAtNoticeSendStatus(Long id, OrderMemorandumAtNoticeSendStatusEnum status);

    /**
     * 查询附件列表
     * @param orderMemorandum
     */
    void setOrderAttachmentList(OrderMemorandum orderMemorandum);
}
